package edu.spec.dengyan.week04.class01;

public class Sheel{

	String name;

	public Sheel(){

		name="蛤蜊";

	}

	public Sheel(String name){

		this.name=name;

	}

	public static void main(String[] args){

		Sheel S=new Sheel("贝壳");
		Sheel S1=new Sheel("白蛤");
		Sheel S2=new Sheel("海瓜子");
		Sheel Sheel=new Sheel("紫壳菜蛤");
		System.out.println(S.name);
		System.out.println(S.getName()+"很漂亮。");
		System.out.println(S1.getName()+S2.getName()+"是同类。");
	}



	public String getName(){

		return name;
	}

	public void eat(Sheel S){

		System.out.println(S.getName()+"很漂亮。");
	}
	public void eat(Sheel S1, Sheel S2){

		System.out.println(S1.getName()+S2.getName()+"是同类。");
	}

}